import request from "@/utils/request";

// 查询登录日志列表
export function list(query) {
  return request({
    url: "/sys/loginLog/list",
    method: "get",
    params: query,
  });
}

// 删除登录日志
export function delLoginLog(infoId) {
  return request({
    url: "/sys/loginLog/" + infoId,
    method: "delete",
  });
}

// 解锁用户登录状态
export function unlockLoginLog(username) {
  return request({
    url: "/sys/loginLog/unlock/" + username,
    method: "get",
  });
}

// 清空登录日志
export function cleanLoginLog(params) {
  return request({
    url: "/sys/loginLog/clean",
    method: "delete",
    params,
  });
}
